<?php

include("classes/include.php");

session_start();

if(isset($_POST['retrograder']) && isset($_POST['select']))
{
	
	$numUti = $_POST['select'];
	
	$prof = new Professeur($numUti);
	
	$prof->setDroit(2);
	
	$prof->updateDroit();
	
	header("Location: administrationAdmin.php");
}

if(isset($_POST['upgrader']) && isset($_POST['select']))
{
	
	$numUti = $_POST['select'];
	
	$prof = new Professeur($numUti);
	
	$prof->setDroit(3);
	
	$prof->updateDroit();
	
	header("Location: administrationAdmin.php");
}

header("Location: administrationAdmin.php");

?>